﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pahan.McuFusion.Common
{
    /// <summary>
    /// The base interface for the hardware interfaces, such as SPI or Fusion Boot.
    /// </summary>
    public interface IHardwareInterface : IDisposable
    {
        /// <summary>
        /// Gets the information about the hardware interface.
        /// </summary>
        HardwareInterfaceInfo Info
        {
            get;
        }

        /// <summary>
        /// Opens the hardware interface.
        /// </summary>
        void Open();

        /// <summary>
        /// Closes the hardware interface.
        /// </summary>
        void Close();
    }
}
